package com.weixing.mall.provider.api.model.enums;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.weixing.mall.base.enums.IBaseEnum;
;
import lombok.NoArgsConstructor;

/**
 * @Author wx
 * @Date 2019/9/29 10:34
 * @Version 1.0
 */
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
@NoArgsConstructor
public enum  OrderMateRuleEnum implements IBaseEnum<Integer> {

    REFUND(1,"精确匹配"),
    RULE2(2,"先精准再模糊"),
    EXCHANGEGOODS(3,"模糊匹配");

    private int value;
    private String desp;

    OrderMateRuleEnum(int value, String desp) {
        this.value = value;
        this.desp = desp;
    }
    @Override
    public Integer getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

    public String getDesp() {
        return desp;
    }

    public void setDesp(String desp) {
        this.desp = desp;
    }
}
